<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>document2html: src/libs/fileext/json/json.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">document2html
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Documents to HTML converter</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('json_8hpp_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">json.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="json_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;../../json.hpp&quot;</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &quot;../../pugixml/pugixml.hpp&quot;</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &quot;../fileext.hpp&quot;</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacejson.html">json</a> {</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="classjson_1_1_json.html">   30</a></span>&#160;<span class="keyword">class </span><a class="code" href="classjson_1_1_json.html">Json</a>: <span class="keyword">public</span> <a class="code" href="classfileext_1_1_file_extension.html">fileext::FileExtension</a> {</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <a class="code" href="classjson_1_1_json.html#ab76d2c25c1328bd6f5b342eca3b1958b">Json</a>(<span class="keyword">const</span> std::string&amp; fileName);</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classjson_1_1_json.html#a0c3ea466a06dd930c710f2933d1b5cba">~Json</a>() = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classjson_1_1_json.html#a231ae4bbe0e09b90086d971643d5071c">convert</a>(<span class="keywordtype">bool</span> addStyle = <span class="keyword">true</span>, <span class="keywordtype">bool</span> extractImages = <span class="keyword">false</span>, <span class="keywordtype">char</span> mergingMode = 0) <span class="keyword">override</span>;</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classjson_1_1_json.html#aa0faa4f7061efc2d18b5ea09dc923128">objectWalker</a>(<span class="keyword">const</span> nlohmann::json&amp; <span class="keywordtype">object</span>, pugi::xml_node&amp; htmlNode) <span class="keyword">const</span>;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classjson_1_1_json.html#a99849a080528988ef998e27b92e9a807">addBrackets</a>(<span class="keyword">const</span> std::string&amp; bracketOpen, <span class="keyword">const</span> std::string&amp; bracketClose,</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;                     <span class="keyword">const</span> nlohmann::json&amp; <span class="keywordtype">object</span>, pugi::xml_node&amp; htmlNode,</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;                     <span class="keyword">const</span> <span class="keywordtype">bool</span> shouldAddComma = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classjson_1_1_json.html#a769a38c85d83686351e42d871a3a608d">addComma</a>(pugi::xml_node&amp; htmlNode) <span class="keyword">const</span>;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;};</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;}  <span class="comment">// End namespace</span></div><div class="ttc" id="classjson_1_1_json_html_a0c3ea466a06dd930c710f2933d1b5cba"><div class="ttname"><a href="classjson_1_1_json.html#a0c3ea466a06dd930c710f2933d1b5cba">json::Json::~Json</a></div><div class="ttdeci">virtual ~Json()=default</div></div>
<div class="ttc" id="classjson_1_1_json_html"><div class="ttname"><a href="classjson_1_1_json.html">json::Json</a></div><div class="ttdoc">JSON files into HTML сonverter. </div><div class="ttdef"><b>Definition:</b> json.hpp:30</div></div>
<div class="ttc" id="classjson_1_1_json_html_ab76d2c25c1328bd6f5b342eca3b1958b"><div class="ttname"><a href="classjson_1_1_json.html#ab76d2c25c1328bd6f5b342eca3b1958b">json::Json::Json</a></div><div class="ttdeci">Json(const std::string &amp;fileName)</div><div class="ttdef"><b>Definition:</b> json.cpp:23</div></div>
<div class="ttc" id="namespacejson_html"><div class="ttname"><a href="namespacejson.html">json</a></div><div class="ttdoc">JSON files into HTML сonverter. </div></div>
<div class="ttc" id="classjson_1_1_json_html_a231ae4bbe0e09b90086d971643d5071c"><div class="ttname"><a href="classjson_1_1_json.html#a231ae4bbe0e09b90086d971643d5071c">json::Json::convert</a></div><div class="ttdeci">void convert(bool addStyle=true, bool extractImages=false, char mergingMode=0) override</div><div class="ttdoc">Convert file to HTML-tree. </div><div class="ttdef"><b>Definition:</b> json.cpp:26</div></div>
<div class="ttc" id="classjson_1_1_json_html_a769a38c85d83686351e42d871a3a608d"><div class="ttname"><a href="classjson_1_1_json.html#a769a38c85d83686351e42d871a3a608d">json::Json::addComma</a></div><div class="ttdeci">void addComma(pugi::xml_node &amp;htmlNode) const</div><div class="ttdoc">Add comma to HTML-node. </div><div class="ttdef"><b>Definition:</b> json.cpp:124</div></div>
<div class="ttc" id="classjson_1_1_json_html_aa0faa4f7061efc2d18b5ea09dc923128"><div class="ttname"><a href="classjson_1_1_json.html#aa0faa4f7061efc2d18b5ea09dc923128">json::Json::objectWalker</a></div><div class="ttdeci">void objectWalker(const nlohmann::json &amp;object, pugi::xml_node &amp;htmlNode) const</div><div class="ttdoc">Recursively walk through all JSON-objects. </div><div class="ttdef"><b>Definition:</b> json.cpp:46</div></div>
<div class="ttc" id="classfileext_1_1_file_extension_html"><div class="ttname"><a href="classfileext_1_1_file_extension.html">fileext::FileExtension</a></div><div class="ttdoc">Base class for file extensions converters. </div><div class="ttdef"><b>Definition:</b> fileext.hpp:32</div></div>
<div class="ttc" id="classjson_1_1_json_html_a99849a080528988ef998e27b92e9a807"><div class="ttname"><a href="classjson_1_1_json.html#a99849a080528988ef998e27b92e9a807">json::Json::addBrackets</a></div><div class="ttdeci">void addBrackets(const std::string &amp;bracketOpen, const std::string &amp;bracketClose, const nlohmann::json &amp;object, pugi::xml_node &amp;htmlNode, const bool shouldAddComma=false) const</div><div class="ttdoc">Add brackets before and after block. </div><div class="ttdef"><b>Definition:</b> json.cpp:106</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_87a455bccb09a92130c26a11a880c98a.html">libs</a></li><li class="navelem"><a class="el" href="dir_ffbcd8de0e3a98e11beaf3347bc22514.html">fileext</a></li><li class="navelem"><a class="el" href="dir_ad78a932c3feb457a3a1729244a2bf84.html">json</a></li><li class="navelem"><a class="el" href="json_8hpp.html">json.hpp</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
